 function closeWindow(){
		 window.close();
	 }
     function showTooltip(target) {  
 	    document.getElementById(target.id.replace(/^label/,'tooltip')).style.display = 'block';  
 	}  
 	function hideTooltip(target) {  
 	    document.getElementById(target.id.replace(/^label/,'tooltip')).style.display = 'none';  
 	} 
	function CheckisNaN(value){
		var field=document.getElementById(value).value;
		
		if(field!=""&&isNaN(field)){
			alert("You must input number in this field");
			document.getElementById(value).value="";
		}

	}


function RadioSelected(){
	
	$("#RadioTypeString").click(function(){
		$("table").hide();
		$(".StringTable").show();
	});
	
	$("#RadioTypeNumber").click(function(){
		$("table").hide();
		$(".NumberTable").show();
	});
	
	$("#RadioTypeDate").click(function(){
		$("table").hide();
		$(".DateTable").show();
		
	});
	
	$("#RadioTypeString").click();
}
	
	
	
	$(function() {
	    $( ".date-pick" ).datepicker();
	    
	    $( ".date-pick" ).datepicker( "option", "dateFormat", "yy-mm-dd" );
	    RadioSelected();
	  });
	 